package main
import (
	"github.com/therecipe/qt/widgets"
	"goplayer/uigen"
)
type MainWindow struct{
	widgets.QMainWindow
	_ func() `constructor:"init"`
}

func (window *MainWindow) init(){
	ui := new(uigen.UIMainwindowMainWindow)
	ui.SetupUI(window.QMainWindow_PTR())
	ui.Centralwidget = NewCentralWidget(nil).QWidget_PTR()
	ui.ActionOpen.ConnectTriggered(func(checked bool){
		widgets.QMessageBox_Information(nil, "OK", "1111",
			widgets.QMessageBox__Ok, widgets.QMessageBox__Ok)
	})
	ui.Centralwidget = NewCentralWidget(nil).QWidget_PTR()
	window.SetCentralWidget(ui.Centralwidget)
}
